<template>
<div>
<!--      <el-card shadow="hover" style="margin-top: 20px">-->
<!--        <div class="user">-->
<!--          <img :src='userImg' alt="none" class="img">-->
<!--          <div class="userInfo">-->
<!--            <p class="name">Admin</p>-->
<!--            <p class="access">超级管理员</p>-->
<!--          </div>-->
<!--        </div>-->
<!--        <hr/>-->
<!--      </el-card>-->
<!--  <el-avatar shape="square" :size="300" fit="contain" :src="item.url"></el-avatar>-->
  <el-carousel :interval="4000" arrow="always" height="300px">
    <el-carousel-item v-for="item in Img" :key="item">
      <a :href="item.href" target="_blank"><img :src="item.url" class="roll" alt=""></a>
    </el-carousel-item>
  </el-carousel>
  <el-divider></el-divider>
  <span><h5>青春是一个短暂的美梦, 当你醒来时, 它早已消失无踪</h5></span>
  <el-divider></el-divider>
  <span><h5>少量的邪恶足以抵消全部高贵的品质, 害得人声名狼藉</h5></span>
  <el-divider></el-divider>
  <span><h5>温馨提示：管理员最好不要随便增加删除改动数据，负责看就好</h5></span>
  <el-divider></el-divider>
  <el-calendar>
  </el-calendar>
</div>
</template>
<!--<template>-->
<!--  <div>-->

<!--  </div>-->
<!--</template>-->
<!--<template>-->
<!--  <div>-->

<!--  </div>-->
<!--</template>-->
<script>
import {getBasicInfo} from "@/api/data";

export default {
  name: "Home",
  data() {
    return {
      userImg: require('../assets/img/avator.jpg'),
      Img: [
        {url: require('../assets/img/1.jpg'), href: "https://www.view.sdu.edu.cn/sddxxxfyfkztwz/sddxyqfkgzztwz.htm"},
        {url: require('../assets/img/2.jpg'), href: "https://www.ygb.sdu.edu.cn/info/1011/11704.htm"},
        {
          url: require('../assets/img/3.jpg'),
          href: "http://www.youth.sdu.edu.cn/tz_content.jsp?urltype=news.NewsContentUrl&wbtreeid=1004&wbnewsid=5803"
        },
        {url: require('../assets/img/4.jpg'), href: "https://www.view.sdu.edu.cn/info/1003/164338.htm"},
      ],
      value: new Date()
    }
  },

}
</script>

<style lang="less" scoped>
.user {
  block-size: auto;
  display: flex;
}

.userInfo {
  .name {
    font-size: 40px;
    font-weight: bold;
  }
  span{
    color: white;
    text-align: center;
  }
  .access {
    font-size: 30px;
    font-family: "Adobe 宋体 Std L";
  }
}
.roll{
  width: 100%;
  height: 100%;
}
h5{
  color: white;
  display: inline-block;
  }
  a{
    display: inline-block;
    width: 100%;
    height: 100%;
  }
.login-info {
  p {
    font-size: 20px;
    margin-right: 40px;
  }
}

.img {
  margin: 40px 20px 20px 20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
}

.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}


</style>
